package com.sihai.ehr.model.biz;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.sihai.core.BaseEntity;
import com.sihai.ehr.model.sys.Organization;
import com.sihai.ehr.model.sys.SalaryLinkedEnum;

/**
 * 个人所得税管理
 * 
 * @author henry
 * 
 */
@Entity
public class SalaryIndividualTax extends BaseEntity<Long> {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6377995859022661506L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	/** 组织结构ID */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "organization_id")
	private Organization organization;

	/** 方案名称 */
	private String title;
	/** 是否除去四金 */
	private boolean removeInsurance;

	/** 挂钩数据类型　 */
	@Enumerated(EnumType.STRING)
	private SalaryLinkedEnum linkedDataType;

	/** 挂钩数据值*/
	private Float costBase;

	@Override
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Organization getOrganization() {
		return organization;
	}

	public void setOrganization(Organization organization) {
		this.organization = organization;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

    public boolean isRemoveInsurance() {
        return removeInsurance;
    }

    public void setRemoveInsurance(boolean removeInsurance) {
        this.removeInsurance = removeInsurance;
    }

    public SalaryLinkedEnum getLinkedDataType() {
		return linkedDataType;
	}

	public void setLinkedDataType(SalaryLinkedEnum linkedDataType) {
		this.linkedDataType = linkedDataType;
	}

	public Float getCostBase() {
		return costBase;
	}

	public void setCostBase(Float costBase) {
		this.costBase = costBase;
	}
}
